<{if $smarty.server.REQUEST_URI|strstr:'comment_new.php'}>
  <h1><{$smarty.const._MD_LEGACY_LANG_POST}></h1>
<{else}>
  <h2><{$smarty.const._MD_LEGACY_LANG_POST}></h2>
<{/if}>

<p><{$smarty.const._MD_LEGACY_LANG_COMMENT_RULE}>:
<{if $xoopsModuleConfig.com_rule == XOOPS_COMMENT_APPROVEALL}>
  <{$smarty.const._CM_COMAPPROVEALL}>
<{elseif $xoopsModuleConfig.com_rule == XOOPS_COMMENT_APPROVEUSER}>
  <{$smarty.const._CM_COMAPPROVEUSER}>
<{else}>
  <{$smarty.const._CM_COMAPPROVEADMIN}>
<{/if}></p>

<{if $actionForm->hasError()}>
  <ul class="errorMsg">
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|xoops_escape}></li>
    <{/foreach}>
  </ul>
<{/if}>

<form action="comment_post.php" method="post">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=com_id value=$actionForm->get('com_id')}>
  <{xoops_input type=hidden name=com_pid value=$actionForm->get('com_pid')}>
  <{xoops_input type=hidden name=com_rootid value=$actionForm->get('com_rootid')}>
  <{xoops_input type=hidden name=com_modid value=$actionForm->get('com_modid')}>
  <{xoops_input type=hidden name=com_itemid value=$actionForm->get('com_itemid')}>
  <{xoops_input type=hidden name=com_exparams value=$actionForm->get('com_exparams')}>
  <{xoops_input type=hidden name=com_order value=$com_order}>
  <table class="outer" cellspacing="1">
    <tr>
      <th class="head"><label for="legacy_xoopsform_com_title"><{$smarty.const._MD_LEGACY_LANG_COM_TITLE}></label></th>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=50 maxlength=255}>
      </td>
    </tr>
    <tr>
      <th class="head"><{$smarty.const._MD_LEGACY_LANG_COM_ICON}></th>
      <td class="<{cycle values="odd,even"}>">
      <{php}>
      $this->assign( $this->_tpl_vars['subjectIcons'][0]->alt = _CM_ICON_NORMAL ) ;
      $this->assign( $this->_tpl_vars['subjectIcons'][1]->alt = _CM_ICON_DISSATISFACTION ) ;
      $this->assign( $this->_tpl_vars['subjectIcons'][2]->alt = _CM_ICON_SATISFACTION ) ;
      $this->assign( $this->_tpl_vars['subjectIcons'][3]->alt = _CM_ICON_LOWER ) ;
      $this->assign( $this->_tpl_vars['subjectIcons'][4]->alt = _CM_ICON_UPPER ) ;
      $this->assign( $this->_tpl_vars['subjectIcons'][5]->alt = _CM_ICON_REPORT ) ;
      $this->assign( $this->_tpl_vars['subjectIcons'][6]->alt = _CM_ICON_QUESTION ) ;
      <{/php}>
      <{* <{assign var=subjectIcons.0->alt value=$smarty.const._CM_ICON_NORMAL}> *}>
        <{foreach item=icon from=$subjectIcons}>
          <label><{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('filename')}><img src="<{$xoops_url}>/images/subject/<{$icon->getShow('filename')}>" alt="<{$icon->alt|escape}>" /></label>
        <{/foreach}>
      </td>
    </tr>
    <tr>
      <th class="head"><label for="legacy_xoopsform_com_text"><{$smarty.const._MD_LEGACY_LANG_COM_TEXT}></label></th>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_dhtmltarea type=text rows=15 cols=60 name=com_text value=$actionForm->get('com_text')}>
      </td>
    </tr>
      <tr>
        <th class="head"><{$smarty.const._MD_LEGACY_LANG_OPTION}></th>
        <td class="<{cycle values="odd,even"}>">
          <{if $xoops_isadmin}>
            <label><{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}> <{$smarty.const._MD_LEGACY_LANG_DOHTML}></label><br />
          <{/if}>
        <label><{xoops_input type=checkbox name=dosmiley value=1 default=$actionForm->get('dosmiley')}> <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}></label><br />
        <label><{xoops_input type=checkbox name=doxcode value=1 default=$actionForm->get('doxcode')}> <{$smarty.const._MD_LEGACY_LANG_DOXCODE}></label><br />
        <label><{xoops_input type=checkbox name=dobr value=1 default=$actionForm->get('dobr')}> <{$smarty.const._MD_LEGACY_LANG_DOBR}></label>
      </td>
    </tr>
    <tr class="foot">
      <td colspan="2" style="text-align:center;">
        <input class="formButton" type="submit" name="com_dopost" value="<{$smarty.const._SUBMIT}>" />
        <script type="text/javascript">
        <!--
          document.write('<input type="button" value="<{$smarty.const._BACK}>" onclick="javascript:history.back()" class="formButton" />')
        //-->
        </script>
        <noscript><a href="<{$sublink.url}>"><{$smarty.const._BACK}></a></noscript>
      </td>
    </tr>
  </table>
</form>
